package core.helpers;

import core.Pilot;

public class ConfiguratorHelper
{
	// PilotManager instance
	protected Pilot pilot;

	/**
	 * Initializes ConfigHelper
	 * @param p_pilot
	 *            PilotManager instance
	 */
	public ConfiguratorHelper(Pilot p_pilot)
	{
		pilot = p_pilot;
	}

	public ConfiguratorHelper setBrowser(String p_browser)
	{
		pilot.dashboard().setBrowserName(p_browser);

		return this;
	}

	public ConfiguratorHelper setPlatform(String p_platform)
	{
		pilot.dashboard().setPlatform(p_platform);

		return this;
	}

	public ConfiguratorHelper setOS(String p_os)
	{
		pilot.dashboard().setOS(p_os);

		return this;
	}

	public ConfiguratorHelper setProxy(String p_proxy)
	{
		pilot.dashboard().setProxy(p_proxy);

		return this;
	}

	public ConfiguratorHelper setSiteName(String p_site)
	{
		pilot.dashboard().setProxy(p_site);

		return this;
	}

	public ConfiguratorHelper setLocation(String p_location)
	{
		pilot.dashboard().setProxy(p_location);

		return this;
	}

	public ConfiguratorHelper setAppiumPort(String p_port)
	{
		pilot.dashboard().setAppiumPort(p_port);

		return this;
	}

	public ConfiguratorHelper setAppiumUdid(String p_udid)
	{
		pilot.dashboard().setAppiumUdid(p_udid);

		return this;
	}

	public ConfiguratorHelper setAppiumBootstrapPort(String p_bootstrapPort)
	{
		pilot.dashboard().setAppiumBootstrapPort(p_bootstrapPort);

		return this;
	}

	public ConfiguratorHelper setAppiumChromedriverPort(String p_chromedriverPort)
	{
		pilot.dashboard().setAppiumChromedriverPort(p_chromedriverPort);

		return this;
	}
}
